
<!DOCTYPE HTML>
<html lang="en" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>服务配置IoServerConfig · smartboot 中文指南</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.2">
        
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search-plus/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-expandable-chapters-interactive/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="5-AioQuickServer.html" />
    
    
    <link rel="prev" href="3-enum.html" />
    

    <style>
    @media only screen and (max-width: 640px) {
        .book-header .hidden-mobile {
            display: none;
        }
    }
    </style>
    <script>
        window["gitbook-plugin-github-buttons"] = {"buttons":[{"user":"smartboot","repo":"smart-socket","type":"star","size":"small","count":true}]};
    </script>

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    关于smartboot
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" >
            
                <span>
            
                    
                    smart-socket 使用手册
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../">
            
                <a href="../">
            
                    
                    前言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../quickStart.html">
            
                <a href="../quickStart.html">
            
                    
                    快速上手
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" >
            
                <span>
            
                    
                    源码篇
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.3.1" data-path="1-ready.html">
            
                <a href="1-ready.html">
            
                    
                    准备工作
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3.2" data-path="2-core-interface.html">
            
                <a href="2-core-interface.html">
            
                    
                    核心接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3.3" data-path="3-enum.html">
            
                <a href="3-enum.html">
            
                    
                    枚举状态
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.2.3.4" data-path="4-IoServerConfig.html">
            
                <a href="4-IoServerConfig.html">
            
                    
                    服务配置IoServerConfig
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3.5" data-path="5-AioQuickServer.html">
            
                <a href="5-AioQuickServer.html">
            
                    
                    服务端AioQuickServer
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3.6" data-path="6-AioQuickClient.html">
            
                <a href="6-AioQuickClient.html">
            
                    
                    客户端AioQuickClient
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3.7" data-path="7-AioSession.html">
            
                <a href="7-AioSession.html">
            
                    
                    通信会话AioSession
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3.8" data-path="8-CompletionHandler.html">
            
                <a href="8-CompletionHandler.html">
            
                    
                    读写回调
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.4" >
            
                <span>
            
                    
                    进阶篇
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.4.1" data-path="../second/readme.html">
            
                <a href="../second/readme.html">
            
                    
                    开篇概述
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4.2" data-path="../second/2-decoder.html">
            
                <a href="../second/2-decoder.html">
            
                    
                    协议解码器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4.3" data-path="../second/3-type-one.html">
            
                <a href="../second/3-type-one.html">
            
                    
                    一类消息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4.4" data-path="../second/4-type-two.html">
            
                <a href="../second/4-type-two.html">
            
                    
                    二类消息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4.5" data-path="../second/5-type-three.html">
            
                <a href="../second/5-type-three.html">
            
                    
                    三类消息
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.5" >
            
                <a target="_blank" href="https://smartboot.github.io/smart-socket/apidocs/index.html">
            
                    
                    API Docs
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    smart-ioc 使用手册
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" >
            
                <span>
            
                    
                    smart-boot 使用手册
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" >
            
                <span>
            
                    
                    mydalgen 使用手册
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" >
            
                <span>
            
                    
                    技术分享
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../../share/rpc/smart-socket-rpc.html">
            
                <a href="../../share/rpc/smart-socket-rpc.html">
            
                    
                    smart-socket实现RPC
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../../share/exception/readme.html">
            
                <a href="../../share/exception/readme.html">
            
                    
                    Exception杂谈
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../../donation.html">
            
                <a href="../../donation.html">
            
                    
                    关于捐赠
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >服务配置IoServerConfig</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div class="search-plus" id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x56DB;&#x3001;&#x670D;&#x52A1;&#x914D;&#x7F6E;ioserverconfig">&#x56DB;&#x3001;&#x670D;&#x52A1;&#x914D;&#x7F6E;IoServerConfig</h1>
<p><code>IoServerConfig</code>&#x662F;&#x4E2A;&#x5305;&#x53EF;&#x89C1;&#x7EA7;&#x522B;&#x7684;&#x7C7B;&#xFF0C;&#x4F9B;smart-socket&#x8FDB;&#x884C;&#x670D;&#x52A1;&#x914D;&#x7F6E;&#x7BA1;&#x7406;&#xFF0C;&#x7528;&#x6237;&#x65E0;&#x6CD5;&#x76F4;&#x63A5;&#x5BF9;&#x5176;&#x64CD;&#x4F5C;&#x3002;&#x4F46;&#x662F;&#x4E86;&#x89E3;&#x8BE5;&#x7C7B;&#x6709;&#x52A9;&#x4E8E;&#x66F4;&#x597D;&#x7684;&#x8FD0;&#x7528;smart-socket&#x5F00;&#x653E;&#x7684;&#x5404;&#x4E2A;&#x63A5;&#x53E3;&#x3002;</p>
<table>
<thead>
<tr>
<th>&#x914D;&#x7F6E;&#x9879;</th>
<th>&#x7C7B;&#x578B;</th>
<th>&#x9ED8;&#x8BA4;&#x503C;</th>
<th>&#x5907;&#x6CE8;</th>
</tr>
</thead>
<tbody>
<tr>
<td>BANNER</td>
<td>String</td>
<td>-</td>
<td>&#x63A7;&#x5236;&#x53F0;&#x6253;&#x5370;&#x7684;&#x542F;&#x52A8;banner</td>
</tr>
<tr>
<td>VERSION</td>
<td>String</td>
<td>v1.3.11</td>
<td>&#x5F53;&#x524D;smart-socket&#x7248;&#x672C;&#x53F7;</td>
</tr>
<tr>
<td>writeQueueSize</td>
<td>int</td>
<td>4</td>
<td>AioSession&#x4E2D;&#x7684;&#x8F93;&#x51FA;&#x7F13;&#x5B58;&#x961F;&#x5217;&#x957F;&#x5EA6;</td>
</tr>
<tr>
<td>readBufferSize</td>
<td>int</td>
<td>512</td>
<td>AioSession&#x8FDB;&#x884C;&#x6570;&#x636E;&#x8BFB;&#x64CD;&#x4F5C;&#x662F;ByteBuffer&#x5927;&#x5C0F;,&#x5355;&#x4F4D;&#xFF1A;byte</td>
</tr>
<tr>
<td>host</td>
<td>String</td>
<td>null</td>
<td>&#x5BA2;&#x6237;&#x7AEF;&#x8FDE;&#x63A5;&#x8FDC;&#x7A0B;&#x670D;&#x52A1;&#x5668;&#x7684;&#x5730;&#x5740;</td>
</tr>
<tr>
<td>filters</td>
<td>Filter&#x6570;&#x7EC4;</td>
<td>[ ]</td>
<td>&#x5B9A;&#x4E49;&#x8FC7;&#x6EE4;&#x5668;&#x6570;&#x7EC4;</td>
</tr>
<tr>
<td>port</td>
<td>int</td>
<td>8888</td>
<td>&#x670D;&#x52A1;&#x7AEF;&#x5F00;&#x653E;&#x7684;&#x7AEF;&#x53E3;&#x53F7;</td>
</tr>
<tr>
<td>processor</td>
<td>MessageProcessor</td>
<td>null</td>
<td>&#x81EA;&#x5B9A;&#x4E49;&#x6D88;&#x606F;&#x5904;&#x7406;&#x5668;</td>
</tr>
<tr>
<td>protocol</td>
<td>Protocol</td>
<td>null</td>
<td>&#x81EA;&#x5B9A;&#x4E49;&#x534F;&#x8BAE;&#x7F16;&#x89E3;&#x7801;</td>
</tr>
<tr>
<td>threadNum</td>
<td>int</td>
<td>CPU Nums</td>
<td>smart-socket&#x7EBF;&#x7A0B;&#x7EC4;&#x5927;&#x5C0F;</td>
</tr>
<tr>
<td>limitRate</td>
<td>float</td>
<td>0.9</td>
<td>&#x6D41;&#x63A7;&#x7CFB;&#x6570;&#xFF0C;<strong>&#x8BE5;&#x914D;&#x7F6E;&#x9879;&#x7531;&#x6846;&#x67B6;&#x7EF4;&#x62A4;&#xFF0C;&#x65E0;&#x6CD5;&#x4FEE;&#x6539;</strong></td>
</tr>
<tr>
<td>releaseRate</td>
<td>float</td>
<td>0.6</td>
<td>&#x89E3;&#x9664;&#x6D41;&#x63A7;&#x7CFB;&#x6570;&#xFF0C;<strong>&#x8BE5;&#x914D;&#x7F6E;&#x9879;&#x7531;&#x6846;&#x67B6;&#x7EF4;&#x62A4;&#xFF0C;&#x65E0;&#x6CD5;&#x4FEE;&#x6539;</strong></td>
</tr>
<tr>
<td>flowLimitLine</td>
<td>int</td>
<td>limitRate*writeQueueSize</td>
<td>&#x89E6;&#x53D1;&#x6D41;&#x63A7;&#x7684;&#x9608;&#x503C;&#xFF0C;<strong>&#x65E0;&#x6CD5;&#x4FEE;&#x6539;</strong></td>
</tr>
<tr>
<td>releaseLine</td>
<td>int</td>
<td>releaseRate*writeQueueSize</td>
<td>&#x89E3;&#x9664;&#x6D41;&#x63A7;&#x7684;&#x9608;&#x503C;&#xFF0C;<strong>&#x65E0;&#x6CD5;&#x4FEE;&#x6539;</strong></td>
</tr>
</tbody>
</table>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; smartboot.org 2018 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">&#x8BE5;&#x6587;&#x4EF6;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2018-06-17 17:39:02
</span></footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="3-enum.html" class="navigation navigation-prev " aria-label="Previous page: 枚举状态">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="5-AioQuickServer.html" class="navigation navigation-next " aria-label="Next page: 服务端AioQuickServer">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"服务配置IoServerConfig","level":"1.2.3.4","depth":3,"next":{"title":"服务端AioQuickServer","level":"1.2.3.5","depth":3,"path":"smart-socket/first/5-AioQuickServer.md","ref":"smart-socket/first/5-AioQuickServer.md","articles":[]},"previous":{"title":"枚举状态","level":"1.2.3.3","depth":3,"path":"smart-socket/first/3-enum.md","ref":"smart-socket/first/3-enum.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-lunr","-search","-sharing","search-plus","expandable-chapters-interactive","tbfed-pagefooter","github","github-buttons","edit-link"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright &copy smartboot.org 2018","modify_label":"该文件修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"github":{"url":"https://github.com/smartboot/smart-socket"},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"expandable-chapters-interactive":{},"github-buttons":{"buttons":[{"user":"smartboot","repo":"smart-socket","type":"star","size":"small","count":true}]},"edit-link":{"label":"Edit This Page","base":"https://gitee.com/smartboot/docs/edit/master"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"search-plus":{}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"smartboot 中文指南","language":"en","gitbook":"*","description":"本文涵盖了smartboot下所有项目的技术手册"},"file":{"path":"smart-socket/first/4-IoServerConfig.md","mtime":"2018-06-17T09:39:02.696Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2018-09-23T08:59:34.607Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-search-plus/jquery.mark.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search-plus/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-expandable-chapters-interactive/expandable-chapters.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-github/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-edit-link/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

